// const req = require.context('../../assets/icons/svg', false, /\.svg$/)
// const requireAll = requireContext => requireContext.keys()

// const re = /\.\/(.*)\.svg/

// const icons = requireAll(req).map(i => {
//   return i.match(re)[1]
// })

const icons = [] as string[]
const modules = import.meta.glob('../../../../../../packages/assets/svgs/*.svg')
for (const path in modules) {
    const p = path.split('assets/svgs/')[1].split('.svg')[0]
    icons.push(p)
}

export default icons
